package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"wet/api/internal/config"
	"wet/wetrpc/wetrpcclient"
)

type ServiceContext struct {
	Config config.Config
	WetRpc wetrpcclient.Wetrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		WetRpc: wetrpcclient.NewWetrpc(zrpc.MustNewClient(c.WetRpc)),
	}
}
